package Controleur;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public abstract class CustomServlet extends HttpServlet
{
	private static final long serialVersionUID = 1L;
	
	private ServletContext context = null;
	
	public abstract void executeGet ( HttpServletRequest request, HttpServletResponse response);
	public abstract void executePost ( HttpServletRequest request, HttpServletResponse response );
	
	public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
	{
	}
	public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
	{
		
	}
	
	@Override
	public ServletContext getServletContext()
	{
		return this.context;
	}
	
	public void setServletContext ( ServletContext context )
	{
		this.context = context;
	}
}
